package com.hurried1y.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hurried1y.model.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * (UserWalletDetail)表实体类
 *
 * @author makejava
 * @since 2023-06-19 11:41:41
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user_wallet_detail")
public class UserWalletDetail {
    //id
    @TableId
    private Long detailId;
    //用户id
    private Long userId;
    //更新金额
    private BigDecimal updateAmount;
    //更新类型(0-收入，1-支出)
    private Integer updateType;
    //更新来源(0-购物，1-退款，2-提现，3-充值)
    private Integer updateSource;
    //银行账户(充值或提现)
    private String bankAccount;
    //订单id
    private Long orderId;
    //更改前金额
    private BigDecimal beforeAmount;
    //更改后金额
    private BigDecimal afterAmount;
    //创建时间
    private Date createTime;
    // 更新时间
    private Date updateTime;
    // 逻辑删除(0-未删除，1-已删除)
    @TableLogic
    private Integer isDelete;
}

